package com.fei.hunqing.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fei.hunqing.dto.UserDetailDto;
import com.fei.hunqing.dto.UserDetailMyDto;
import com.fei.hunqing.entity.UserDetail;
import org.apache.ibatis.annotations.Param;

public interface UserDetailDao extends BaseMapper<UserDetail> {

    //修改
    int updateDetail(UserDetailDto dto);
    //查询
    UserDetailMyDto queryByUid(int uid);
    //更改坤币
    int updateGold(@Param("uid") int uid,@Param("g") int g);
    //更改头像
    int updateUrl(@Param("uid") int uid,@Param("url") String url);
}
